<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
	<head>
		<title>DamnIT Example Email</title>
		<link rel="stylesheet" type="text/css" href="/stylesheets/email.css" />
	</head>
	<body onload='window.opener.insert_into_email_window();return false;'>
		<p>This is the error notification email for the demo.  After registering for DamnIT, you'd receive this information in an email.</p>
		<div class='email'>
			<h1 id='subject'></h1>
			<pre id='content'></pre>
		</div>
		<script type='text/javascript'>
			var insert_subject = function(subject) {
				document.getElementById('subject').innerHTML = subject;
			}
			var insert_content = function(content) {
				content = '<span class="from">accounts@jupiterit.com</span> to me\n\n'+
					content.replace(/</g,'&lt;').replace(/>/g,'&gt;');
				document.getElementById('content').innerHTML = content.replace(/\n/g,'<br/>');
			}
		</script>
	</body>
</html>